package com.bkgy.controller.allprocess.controller;


import com.bkgy.controller.allprocess.dto.*;
import com.bkgy.controller.allprocess.service.*;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;

@RestController
@RequestMapping("/allprocess")
public class AllprocessIndexController {

    @Autowired
    private AllProcessIndexService allProcessindexService;

    @Operation(summary = "全流程成材率模型首页 总成材率", description = "全流程成材率模型首页 总成材率")
    @PostMapping("/indexdetails")
    public ResultData<AllProcessIndexDetails> allprocessIndex (@RequestBody @Valid AllpricessIndexReasonRequst request)
    {
        return allProcessindexService.allprocessIndex(request);
    }


}
